import config from "@/config"
import http from "@/utils/request"

export default {
  brandDetail: {
    url: `${config.API_URL}/cms/brand/brand/info`,
    name: "获取brand详情",
    get: async function(){
      return await http.get(this.url)
    }
  },
  brandUpload: {
    url: `${config.API_URL}/cms/brand/update`,
    name: "上传产品",
    post: async function(data = {}){
      return await http.post(this.url,data)
    }
  },
  brandPwd: {
    url: `${config.API_URL}/cms/brand/pwd`,
    name: "更改密码",
    post: async function(data = {}){
      return await http.post(this.url,data)
    }
  }
}